package com.wise.summer.v1.cms.content.column;

import com.wise.entities.content.ArticleColumn;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.ArticleColumnShowStatus;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001600250003;
import static com.wise.model.content.ContentErrMsgs.Err_001600250010;
import static com.wise.model.content.ContentErrMsgs.Err_001600250011;
import static com.wise.model.content.ContentErrMsgs.Err_001600250013;
import static com.wise.model.content.ContentErrMsgs.Err_001600250015;
import static com.wise.model.content.ContentErrMsgs.Err_001600250016;
import static com.wise.model.content.ContentErrMsgs.Err_001600250020;

@Setter
@Getter
@Publish
@ApiInfo("更新栏目")
public class UpdateColumnById extends BasicSummer<ArticleColumn> {
	@NotBlank(msg = Err_001600250013)
	private String id;

	@ApiInfo("栏目名")
	@NotBlank(msg = Err_001600250010)
	private String columnName;

	@ApiInfo("是否显示")
	@NotNull(msg = Err_001600250011)
	@AssertEnum(enumClass = ArticleColumnShowStatus.class, msg = Err_001600250016)
	private Integer showState;

	@ApiInfo("排序")
	@NotNull(msg = Err_001600250003)
	private Integer sort;

	@ApiInfo("栏目自定义路径")
	private String alias;

	@ApiInfo("媒体聚焦1, 通知公告2, 新闻动态(大类)3, 中心党建(类别)4, 研究所党建5, 创新综合体党建6, 招聘(大类)7")
	@NotNull(msg = Err_001600250020)
	private Integer type;

}
